package com.yxw.blog.dao;

import com.yxw.blog.bean.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;

/**
 * @author yexinwei
 */
@Repository
@Mapper
public interface UserDao {

    User getUserByNameAndPassword(String name , String password);

    User getUserByName(String name);

    Integer addUser(String name, String password , String defaultHead);

    User getUserById(Integer id);

    Integer updateUser(String display_name, String birthday, String email, String location, String sex, String imageUrl, Integer userId);

    Integer updateUserExceptImageUrl(String display_name, String birthday, String email, String location, String sex, Integer userId);
}
